package com.itzjc.domain.entity;

import com.itzjc.domain.pojo.SiteData;

import java.io.Serializable;
import java.util.List;

/**
 * 返回绘制历史数据曲线的封装类
 *
 * @className: PlaneData
 * @date: 2021-09-18 23:15
 **/
public class PlaneData implements Serializable {
    //这里的section就是测面的意思，也就是plane，因为它的范围在数据库中包含更多
    private Integer sectionId;
    private String name;
    private String img;
    private String currentTime;
    private String timeStamp;
    private List<SiteData> children;

    //有参、空参、set/get、toString

    @Override
    public String toString() {
        return "PlaneData{" +
                "sectionId=" + sectionId +
                ", name='" + name + '\'' +
                ", img='" + img + '\'' +
                ", currentTime='" + currentTime + '\'' +
                ", timeStamp='" + timeStamp + '\'' +
                ", children=" + children +
                '}';
    }

    public Integer getSectionId() {
        return sectionId;
    }

    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(String currentTime) {
        this.currentTime = currentTime;
    }

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public List<SiteData> getChildren() {
        return children;
    }

    public void setChildren(List<SiteData> children) {
        this.children = children;
    }

    public PlaneData(Integer sectionId, String name, String img, String currentTime, String timeStamp, List<SiteData> children) {
        this.sectionId = sectionId;
        this.name = name;
        this.img = img;
        this.currentTime = currentTime;
        this.timeStamp = timeStamp;
        this.children = children;
    }

    public PlaneData() {
    }
}
